package com.kayt.cyberBar.cpublic.business.service;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.cpublic.business.entity.vo.PublicKeyVO;
import com.kayt.cyberBar.cpublic.business.entity.vo.PublicQueryVO;

@Path("/key")
@Produces({"application/json" + ";charset=UTF-8"})
@Consumes({"application/json"})
public interface IPublicKeyService {

	@GET
	@Path("getKeyList.do")
	public ServerResponse<PageData<PublicKeyVO>> getKeyList(@QueryParam("")PublicQueryVO query);

	@GET
	@Path("getKey.do")
	public ServerResponse<PublicKeyVO> getKey(@QueryParam("")PublicKeyVO vo);

	@POST
	@Path("addKey.do")
	public ServerResponse<PublicKeyVO> addKey();

	@POST
	@Path("updateKey.do")
	public ServerResponse<String> updateKey(PublicKeyVO vo);

}
